.wrapper {
  width: 100%;
  height: 100%;
  background-color: #F4F4FC;
  overflow-y: auto;
}

/* 主容器 */
.container {
  width: 55%;
  min-width: 800px;
  margin: 0 auto;
  padding: 20px;
  display: flex;
  flex-direction: column;
  background-color: white;
}

/* 头部样式 */
.header {
  position: relative;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  padding: 8px;
  border-radius: 16px;
}

.headerBackground {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 16px;
  z-index: 0;
}

.button {
  display: flex;
  flex-direction: row;
  align-items: center;
  height: 21px;
  font-size: 14px;
  color: #7869FF;
  line-height: 21px;
  text-align: left;
  font-style: normal;
  text-transform: none;
  margin-right: 20px;
  cursor: pointer;
  padding: 4px 8px;

  .icon {
    margin-right: 10px;
  }

  .btnText {
    position: relative;
    left: -2px;
  }
}

.button:hover {
  background: #F5F5FF;
  border-radius: 6px 6px 6px 6px;
}

/* 标题样式 */
.title {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  font-weight: bold;
  font-size: 20px;
  color: #333333;
  line-height: 30px;
}

/* 表单容器 */
.formContainer {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.formCard {
  border-radius: 16px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  border: none;
}

.formItem {
  margin-bottom: 16px;
}

/* 标签容器 */
.labelContainer {
  display: flex;
  align-items: center;
  margin-bottom: 8px;
}

.required {
  color: #ff4d4f;
  margin-left: 4px;
}

.labelWithHelp {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

/* 输入样式 */
.selectInput {
  border-radius: 10px;

  :global(.ant-select-selector) {
    background-color: #F9FAFC !important;
  }
}

.selectInput:hover,
.textAreaInput:hover {
  border-color: #7869ff;
}

.selectInput:focus,
.textAreaInput:focus {
  border-color: #7869ff;
  box-shadow: 0 0 0 2px rgba(120, 105, 255, 0.2);
}

.textAreaInput {
  border-radius: 12px;
  background-color: #f9fafc;
  border: 1px solid #f1f2f4;
  padding: 12px;
  resize: none !important;
  min-height: 72px !important;
}

/* 背景图容器 */
.backgroundContainer {
  width: 100%;
  border: 1px solid #f1f2f4;
  border-radius: 12px;
  overflow: hidden;
  position: relative;
  display: flex;
  flex-direction: row;
  padding: 20px 0;
}

.backgroundPreview {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  position: relative;

  .bgTitle {
    font-weight: 400;
    font-size: 12px;
    color: #666666;
    line-height: 18px;
    padding: 16px;
  }

  .bgImg {
    width: 100%;
    padding: 0 16px;
  }
}

.previewImage {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

/* 嵌套卡片 */
.nestedCard {
  border: 1px solid #f1f2f4;
  border-radius: 12px;
}

/* 生成链接按钮 */
.generateButton {
  background-color: #7869ff;
  border-color: #7869ff;
  border-radius: 10px;
  height: 50px;
  font-size: 16px;
}

.generateButton:hover,
.generateButton:focus {
  background-color: #6658e8;
  border-color: #6658e8;
}
